
cc.Class({
    extends: cc.Component,

    properties: {

    },

    // LIFE-CYCLE CALLBACKS:

    onLoad () {},
    show(fun){
        this.node.active=true;
        this.node.opacity=255;
        var self=this;
        this.node.runAction(
            cc.sequence(
                cc.fadeOut(0.5),
                cc.callFunc(function () {
                    self.node.active=false;
                }),
                cc.callFunc(fun)
            )
        )
    },
    hide(fun){
        this.node.opacity=0;
        this.node.active=true;
        this.node.runAction(
            cc.sequence(
                cc.fadeIn(0.5),
                cc.callFunc(fun)
            )
        )
    },

    start () {

    },

    // update (dt) {},
});
